package cn.kgc.springday01;

import cn.kgc.springday01.factory.BeanFactory;
import cn.kgc.springday01.service.UserService;

public class App {

    public static void main( String[] args ) {

        //UserService userService = new UserServiceImpl();
        //userService.add();

        UserService userService = BeanFactory.getBean("userService", UserService.class);
        userService.add();


        //StudentService studentService = new StudentServiceImpl();
        //studentService.add();
    }
}
